home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xuldoc / nsIController.h next >
C/C++ Source or Header  |  2006-05-08  |  13KB  |  332 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIController.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIController_h__
  6. #define __gen_nsIController_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIController */
  19. #define NS_ICONTROLLER_IID_STR "d5b61b82-1da4-11d3-bf87-00105a1b0627"
  20.  
  21. #define NS_ICONTROLLER_IID \
  22.   {0xd5b61b82, 0x1da4, 0x11d3, \
  23.     { 0xbf, 0x87, 0x00, 0x10, 0x5a, 0x1b, 0x06, 0x27 }}
  24.  
  25. class NS_NO_VTABLE nsIController : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTROLLER_IID)
  29.  
  30.   /* boolean isCommandEnabled (in string command); */
  31.   NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval) = 0;
  32.  
  33.   /* boolean supportsCommand (in string command); */
  34.   NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) = 0;
  35.  
  36.   /* void doCommand (in string command); */
  37.   NS_IMETHOD DoCommand(const char *command) = 0;
  38.  
  39.   /* void onEvent (in string eventName); */
  40.   NS_IMETHOD OnEvent(const char *eventName) = 0;
  41.  
  42. };
  43.  
  44. /* Use this macro when declaring classes that implement this interface. */
  45. #define NS_DECL_NSICONTROLLER \
  46.   NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval); \
  47.   NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval); \
  48.   NS_IMETHOD DoCommand(const char *command); \
  49.   NS_IMETHOD OnEvent(const char *eventName); 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  52. #define NS_FORWARD_NSICONTROLLER(_to) \
  53.   NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval) { return _to IsCommandEnabled(command, _retval); } \
  54.   NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) { return _to SupportsCommand(command, _retval); } \
  55.   NS_IMETHOD DoCommand(const char *command) { return _to DoCommand(command); } \
  56.   NS_IMETHOD OnEvent(const char *eventName) { return _to OnEvent(eventName); } 
  57.  
  58. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  59. #define NS_FORWARD_SAFE_NSICONTROLLER(_to) \
  60.   NS_IMETHOD IsCommandEnabled(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(command, _retval); } \
  61.   NS_IMETHOD SupportsCommand(const char *command, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(command, _retval); } \
  62.   NS_IMETHOD DoCommand(const char *command) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(command); } \
  63.   NS_IMETHOD OnEvent(const char *eventName) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEvent(eventName); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsController : public nsIController
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSICONTROLLER
  74.  
  75.   nsController();
  76.  
  77. private:
  78.   ~nsController();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsController, nsIController)
  86.  
  87. nsController::nsController()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsController::~nsController()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* boolean isCommandEnabled (in string command); */
  98. NS_IMETHODIMP nsController::IsCommandEnabled(const char *command, PRBool *_retval)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* boolean supportsCommand (in string command); */
  104. NS_IMETHODIMP nsController::SupportsCommand(const char *command, PRBool *_retval)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* void doCommand (in string command); */
  110. NS_IMETHODIMP nsController::DoCommand(const char *command)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* void onEvent (in string eventName); */
  116. NS_IMETHODIMP nsController::OnEvent(const char *eventName)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* End of implementation class template. */
  122. #endif
  123.  
  124. class nsICommandParams; /* forward declaration */
  125.  
  126.  
  127. /* starting interface:    nsICommandController */
  128. #define NS_ICOMMANDCONTROLLER_IID_STR "ebe55080-c8a9-11d5-a73c-dd620d6e04bc"
  129.  
  130. #define NS_ICOMMANDCONTROLLER_IID \
  131.   {0xebe55080, 0xc8a9, 0x11d5, \
  132.     { 0xa7, 0x3c, 0xdd, 0x62, 0x0d, 0x6e, 0x04, 0xbc }}
  133.  
  134. class NS_NO_VTABLE nsICommandController : public nsISupports {
  135.  public: 
  136.  
  137.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMMANDCONTROLLER_IID)
  138.  
  139.   /* void getCommandStateWithParams (in string command, in nsICommandParams aCommandParams); */
  140.   NS_IMETHOD GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams) = 0;
  141.  
  142.   /* void doCommandWithParams (in string command, in nsICommandParams aCommandParams); */
  143.   NS_IMETHOD DoCommandWithParams(const char *command, nsICommandParams *aCommandParams) = 0;
  144.  
  145. };
  146.  
  147. /* Use this macro when declaring classes that implement this interface. */
  148. #define NS_DECL_NSICOMMANDCONTROLLER \
  149.   NS_IMETHOD GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams); \
  150.   NS_IMETHOD DoCommandWithParams(const char *command, nsICommandParams *aCommandParams); 
  151.  
  152. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  153. #define NS_FORWARD_NSICOMMANDCONTROLLER(_to) \
  154.   NS_IMETHOD GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams) { return _to GetCommandStateWithParams(command, aCommandParams); } \
  155.   NS_IMETHOD DoCommandWithParams(const char *command, nsICommandParams *aCommandParams) { return _to DoCommandWithParams(command, aCommandParams); } 
  156.  
  157. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  158. #define NS_FORWARD_SAFE_NSICOMMANDCONTROLLER(_to) \
  159.   NS_IMETHOD GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandStateWithParams(command, aCommandParams); } \
  160.   NS_IMETHOD DoCommandWithParams(const char *command, nsICommandParams *aCommandParams) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommandWithParams(command, aCommandParams); } 
  161.  
  162. #if 0
  163. /* Use the code below as a template for the implementation class for this interface. */
  164.  
  165. /* Header file */
  166. class nsCommandController : public nsICommandController
  167. {
  168. public:
  169.   NS_DECL_ISUPPORTS
  170.   NS_DECL_NSICOMMANDCONTROLLER
  171.  
  172.   nsCommandController();
  173.  
  174. private:
  175.   ~nsCommandController();
  176.  
  177. protected:
  178.   /* additional members */
  179. };
  180.  
  181. /* Implementation file */
  182. NS_IMPL_ISUPPORTS1(nsCommandController, nsICommandController)
  183.  
  184. nsCommandController::nsCommandController()
  185. {
  186.   /* member initializers and constructor code */
  187. }
  188.  
  189. nsCommandController::~nsCommandController()
  190. {
  191.   /* destructor code */
  192. }
  193.  
  194. /* void getCommandStateWithParams (in string command, in nsICommandParams aCommandParams); */
  195. NS_IMETHODIMP nsCommandController::GetCommandStateWithParams(const char *command, nsICommandParams *aCommandParams)
  196. {
  197.     return NS_ERROR_NOT_IMPLEMENTED;
  198. }
  199.  
  200. /* void doCommandWithParams (in string command, in nsICommandParams aCommandParams); */
  201. NS_IMETHODIMP nsCommandController::DoCommandWithParams(const char *command, nsICommandParams *aCommandParams)
  202. {
  203.     return NS_ERROR_NOT_IMPLEMENTED;
  204. }
  205.  
  206. /* End of implementation class template. */
  207. #endif
  208.  
  209. class nsISimpleEnumerator; /* forward declaration */
  210.  
  211.  
  212. /* starting interface:    nsIControllerCommandGroup */
  213. #define NS_ICONTROLLERCOMMANDGROUP_IID_STR "9f82c404-1c7b-11d5-a73c-eca43ca836fc"
  214.  
  215. #define NS_ICONTROLLERCOMMANDGROUP_IID \
  216.   {0x9f82c404, 0x1c7b, 0x11d5, \
  217.     { 0xa7, 0x3c, 0xec, 0xa4, 0x3c, 0xa8, 0x36, 0xfc }}
  218.  
  219. class NS_NO_VTABLE nsIControllerCommandGroup : public nsISupports {
  220.  public: 
  221.  
  222.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICONTROLLERCOMMANDGROUP_IID)
  223.  
  224.   /* void addCommandToGroup (in string aCommand, in string aGroup); */
  225.   NS_IMETHOD AddCommandToGroup(const char *aCommand, const char *aGroup) = 0;
  226.  
  227.   /* void removeCommandFromGroup (in string aCommand, in string aGroup); */
  228.   NS_IMETHOD RemoveCommandFromGroup(const char *aCommand, const char *aGroup) = 0;
  229.  
  230.   /* boolean isCommandInGroup (in string aCommand, in string aGroup); */
  231.   NS_IMETHOD IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval) = 0;
  232.  
  233.   /* nsISimpleEnumerator getGroupsEnumerator (); */
  234.   NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator **_retval) = 0;
  235.  
  236.   /* nsISimpleEnumerator getEnumeratorForGroup (in string aGroup); */
  237.   NS_IMETHOD GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval) = 0;
  238.  
  239. };
  240.  
  241. /* Use this macro when declaring classes that implement this interface. */
  242. #define NS_DECL_NSICONTROLLERCOMMANDGROUP \
  243.   NS_IMETHOD AddCommandToGroup(const char *aCommand, const char *aGroup); \
  244.   NS_IMETHOD RemoveCommandFromGroup(const char *aCommand, const char *aGroup); \
  245.   NS_IMETHOD IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval); \
  246.   NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator **_retval); \
  247.   NS_IMETHOD GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval); 
  248.  
  249. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  250. #define NS_FORWARD_NSICONTROLLERCOMMANDGROUP(_to) \
  251.   NS_IMETHOD AddCommandToGroup(const char *aCommand, const char *aGroup) { return _to AddCommandToGroup(aCommand, aGroup); } \
  252.   NS_IMETHOD RemoveCommandFromGroup(const char *aCommand, const char *aGroup) { return _to RemoveCommandFromGroup(aCommand, aGroup); } \
  253.   NS_IMETHOD IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval) { return _to IsCommandInGroup(aCommand, aGroup, _retval); } \
  254.   NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator **_retval) { return _to GetGroupsEnumerator(_retval); } \
  255.   NS_IMETHOD GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval) { return _to GetEnumeratorForGroup(aGroup, _retval); } 
  256.  
  257. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  258. #define NS_FORWARD_SAFE_NSICONTROLLERCOMMANDGROUP(_to) \
  259.   NS_IMETHOD AddCommandToGroup(const char *aCommand, const char *aGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCommandToGroup(aCommand, aGroup); } \
  260.   NS_IMETHOD RemoveCommandFromGroup(const char *aCommand, const char *aGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCommandFromGroup(aCommand, aGroup); } \
  261.   NS_IMETHOD IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandInGroup(aCommand, aGroup, _retval); } \
  262.   NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupsEnumerator(_retval); } \
  263.   NS_IMETHOD GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnumeratorForGroup(aGroup, _retval); } 
  264.  
  265. #if 0
  266. /* Use the code below as a template for the implementation class for this interface. */
  267.  
  268. /* Header file */
  269. class nsControllerCommandGroup : public nsIControllerCommandGroup
  270. {
  271. public:
  272.   NS_DECL_ISUPPORTS
  273.   NS_DECL_NSICONTROLLERCOMMANDGROUP
  274.  
  275.   nsControllerCommandGroup();
  276.  
  277. private:
  278.   ~nsControllerCommandGroup();
  279.  
  280. protected:
  281.   /* additional members */
  282. };
  283.  
  284. /* Implementation file */
  285. NS_IMPL_ISUPPORTS1(nsControllerCommandGroup, nsIControllerCommandGroup)
  286.  
  287. nsControllerCommandGroup::nsControllerCommandGroup()
  288. {
  289.   /* member initializers and constructor code */
  290. }
  291.  
  292. nsControllerCommandGroup::~nsControllerCommandGroup()
  293. {
  294.   /* destructor code */
  295. }
  296.  
  297. /* void addCommandToGroup (in string aCommand, in string aGroup); */
  298. NS_IMETHODIMP nsControllerCommandGroup::AddCommandToGroup(const char *aCommand, const char *aGroup)
  299. {
  300.     return NS_ERROR_NOT_IMPLEMENTED;
  301. }
  302.  
  303. /* void removeCommandFromGroup (in string aCommand, in string aGroup); */
  304. NS_IMETHODIMP nsControllerCommandGroup::RemoveCommandFromGroup(const char *aCommand, const char *aGroup)
  305. {
  306.     return NS_ERROR_NOT_IMPLEMENTED;
  307. }
  308.  
  309. /* boolean isCommandInGroup (in string aCommand, in string aGroup); */
  310. NS_IMETHODIMP nsControllerCommandGroup::IsCommandInGroup(const char *aCommand, const char *aGroup, PRBool *_retval)
  311. {
  312.     return NS_ERROR_NOT_IMPLEMENTED;
  313. }
  314.  
  315. /* nsISimpleEnumerator getGroupsEnumerator (); */
  316. NS_IMETHODIMP nsControllerCommandGroup::GetGroupsEnumerator(nsISimpleEnumerator **_retval)
  317. {
  318.     return NS_ERROR_NOT_IMPLEMENTED;
  319. }
  320.  
  321. /* nsISimpleEnumerator getEnumeratorForGroup (in string aGroup); */
  322. NS_IMETHODIMP nsControllerCommandGroup::GetEnumeratorForGroup(const char *aGroup, nsISimpleEnumerator **_retval)
  323. {
  324.     return NS_ERROR_NOT_IMPLEMENTED;
  325. }
  326.  
  327. /* End of implementation class template. */
  328. #endif
  329.  
  330.  
  331. #endif /* __gen_nsIController_h__ */
  332.